home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / u_man / cat1 / X11 / userenv.z / userenv
Encoding:
Text File  |  1998-10-20  |  3.8 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      UUUUSSSSEEEERRRREEEENNNNVVVV((((1111))))              SSSSiiiilllliiiiccccoooonnnn GGGGrrrraaaapppphhhhiiiiccccssss               UUUUSSSSEEEERRRREEEENNNNVVVV((((1111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           uuuusssseeeerrrreeeennnnvvvv - print user's login environment
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           uuuusssseeeerrrreeeennnnvvvv [-nologin] [-csh] [ -t timeout ]
  13.  
  14.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.           uuuusssseeeerrrreeeennnnvvvv executes a user's login shell, finds the resulting
  16.           environment, and then prints to stdout commands such as
  17.  
  18.                PATH=mypath; export PATH
  19.  
  20.           which can be eval'ed by /bin/sh in order to set the
  21.           environment.
  22.  
  23.           _U_s_e_r_e_n_v starts an interactive shell.  Before executing the
  24.           shell, it sets the environment variable EEEENNNNVVVVOOOONNNNLLLLYYYY equal to 1111.
  25.           Thus, when your login scripts are executed as a result of
  26.           uuuusssseeeerrrreeeennnnvvvv, they will execute fastest if, after seeing that
  27.           EEEENNNNVVVVOOOONNNNLLLLYYYY = 1111, they do very little except for setting the
  28.           environment.  This variable is also useful for disabling
  29.           interactive portions of login scripts.
  30.  
  31.           Although _u_s_e_r_e_n_v is fairly robust, it's possible that
  32.           interactive sequences in a login script might fail.  At
  33.           worst, uuuusssseeeerrrreeeennnnvvvv will timeout when interacting with the shell,
  34.           and will print nothing to stdout.  If it times out, it will
  35.           print an error message to /dev/console.
  36.  
  37.           This program is intended for use by the window system.
  38.  
  39.      OOOOPPPPTTTTIIIIOOOONNNNSSSS
  40.           ----nnnnoooollllooooggggiiiinnnn   Execute the appropriate shell, but not a login
  41.                      shell.  For _c_s_h, this causes ._c_s_h_r_c to be read,
  42.                      but not ._l_o_g_i_n.
  43.  
  44.           ----ccccsssshhhh       causes the output by uuuusssseeeerrrreeeennnnvvvv to be csh, rather
  45.                      than sh, commands.
  46.  
  47.           ----tttt ttttiiiimmmmeeeeoooouuuutttt Allows specifying the timeout value in seconds
  48.                      before userenv gives up waiting for input.  This
  49.                      may be useful for users who have commands that
  50.                      cause long delays in their login scripts.  The
  51.                      default is 10 seconds.
  52.  
  53.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  54.           xdm(1)
  55.  
  56.      DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  57.           uuuusssseeeerrrreeeennnnvvvv returns 0 on success and nonzero if it was unable to
  58.           exexcute a login shell or find that environment.
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 4/30/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      UUUUSSSSEEEERRRREEEENNNNVVVV((((1111))))              SSSSiiiilllliiiiccccoooonnnn GGGGrrrraaaapppphhhhiiiiccccssss               UUUUSSSSEEEERRRREEEENNNNVVVV((((1111))))
  71.  
  72.  
  73.  
  74.      EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT VVVVAAAARRRRIIIIAAAABBBBLLLLEEEESSSS
  75.           ENVONLY
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 4/30/98)
  130.  
  131.  
  132.  
  133.